]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Destroy tooltip label when item is removed
authorRon Yorston <rmy@pobox.com>
Sun, 8 Apr 2012 19:35:41 +0000 (20:35 +0100)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 27 Apr 2012 19:50:48 +0000 (15:50 -0400)
js/ui/dash.js

index 4f778785e8f6cbf26d0fa30bfc5f2a21db6f9fcd..69caf5b02d3035da318f31e992d077da3e0a5d5f 100644 (file)
@@ -168,7 +168,17 @@ const DashItemContainer = new Lang.Class({
                          });
     },
 
+    destroy: function() {
+        if (this.label)
+            this.label.destroy();
+
+        this.actor.destroy();
+    },
+
     animateOutAndDestroy: function() {
+        if (this.label)
+            this.label.destroy();
+
         if (this.child == null) {
             this.actor.destroy();
             return;
@@ -691,7 +701,7 @@ const Dash = new Lang.Class({
             if (Main.overview.visible)
                 item.animateOutAndDestroy();
             else
-                item.actor.destroy();
+                item.destroy();
         }
 
         this._adjustIconSize();